#include <iostream>
#include<malloc.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

char *strcpy(char *src)
{
	if(src=NULL)
	return 0;
	int i=0;
	int L;
	char *a;
	while(src[i]=!'\0')
	{
		i++;
	}
	a=(char*)malloc(sizeof(char)*(L+1));
	for(i=0;i<L;i++)
	a[i]=src[i];
	if(a[i]='\0')
	return a;
	}
int main(int argc, char** argv) {
	char src[10];
	char a[10]="abcdef";
	strcpy(a);
	return 0;
}

